package org.demo.quartz.listener;

import com.alibaba.druid.support.json.JSONUtils;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobListener;

public class TestJobListener implements JobListener {
    @Override
    public String getName() {
        return "TestJobListener";
    }

    @Override
    public void jobToBeExecuted(JobExecutionContext context) {
        System.out.println("YH:jobToBeExecuted  "+ context);
    }

    @Override
    public void jobExecutionVetoed(JobExecutionContext context) {
        System.out.println("YH:jobExecutionVetoed  "+ context);
    }

    @Override
    public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException) {
        System.out.println("YH:jobExecutionVetoed1  "+ context);
        System.out.println("YH:jobExecutionVetoed2  "+ jobException);
    }
}
